package com.hsmpay.mobile.service.terminal.impl;

import com.hsmpay.common.service.impl.BaseServiceSupport;
import com.hsmpay.mobile.dao.terminal.TerminalTypeDao;
import com.hsmpay.mobile.pojo.terminal.TerminalType;
import com.hsmpay.mobile.service.terminal.TerminalTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 终端类型 dao实现类 terminalTypeService
 * 对应Dao terminalTypeDao
 *
 * @author 颜铃璋
 *         创建时间： 2012-1-5
 */
@Service("terminalTypeService")
public class TerminalTypeServiceImpl extends BaseServiceSupport<TerminalType, Long> implements TerminalTypeService<TerminalType, Long> {
    @Resource(name = "terminalTypeDao")
    private TerminalTypeDao<TerminalType, Long> terminalTypeDao;

    /**
     * 根据终端类型ID 查询终端类型对象
     *
     * @param id
     * @return
     * @throws Exception
     */
    public TerminalType searchTerminalTypeById(Long id) throws Exception {
        return terminalTypeDao.searchEntityById(TerminalType.class, id);
    }

}
